package com.example.basic.web.model.remains;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.basic.base.IdEntity;
import com.example.basic.base.event.PreCreateEventEntity;
import com.example.basic.base.event.PreUpdateEventEntity;
import com.example.basic.utils.CommonConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 遗体信息
 * </p>
 *
 * @roleor zzl
 * @since 2024-3-14
 */
@Data
@TableName("sys_remains_info")
@ApiModel(value="RemainsInfo对象", description="遗体信息")
public class RemainsInfo extends IdEntity implements PreCreateEventEntity, PreUpdateEventEntity {

    @ApiModelProperty(value = "数据id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date createAt;

    @ApiModelProperty(value = "数据创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "数据修改时间")
    @TableField(value = "update_at", fill = FieldFill.UPDATE)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date updateAt;

    @ApiModelProperty(value = "数据修改人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "遗体编码")
    @TableField("remains_code")
    private String remainsCode;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("sex_code")
    private String sexCode;

    @ApiModelProperty(value = "性别")
    @TableField(exist = false)
    private String sex;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private String age;

    @ApiModelProperty(value = "出生日期")
    @TableField("birthday")
    private String birthday;

    @ApiModelProperty(value = "身份证号")
    @TableField("id_no")
    private String idNo;

    @ApiModelProperty(value = "联系人")
    @TableField("contact_name")
    private String contactName;

    @ApiModelProperty(value = "联系电话")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "火化方式")
    @TableField("cremation_type")
    private String cremationType;

    @ApiModelProperty(value = "火化方式")
    @TableField(exist = false)
    private String cremationTypeName;

    @ApiModelProperty(value = "火化时间")
    @TableField("cremation_time")
    @JsonFormat(pattern = CommonConstant.TIME_FORMAT_TEN)
    private Date cremationTime;

    @ApiModelProperty(value = "特殊处理")
    @TableField("special_handle")
    private String specialHandle;

    @ApiModelProperty(value = "特殊处理")
    @TableField(exist = false)
    private String specialHandleName;

    @ApiModelProperty(value = "瞻仰")
    @TableField("admire")
    private String admire;

    @ApiModelProperty(value = "瞻仰")
    @TableField(exist = false)
    private String admireName;

    @ApiModelProperty(value = "拼音码")
    @TableField("py_code")
    private String pyCode;

    @ApiModelProperty(value = "五笔码")
    @TableField("wb_code")
    private String wbCode;

    @ApiModelProperty(value = "实际火化时间")
    @TableField("real_cremation_time")
    @JsonFormat(pattern = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date realCremationTime;

}